<?php
/**
 * @date 2012-3-19
 * @author GhostWei
 */
class controller_admin_system extends system_controller_action {
	
	private $user = null;
	private $referer = null;
	private $language = null;
	public function init() {
		if($this->adminLogin()) {
			return;
		}
		$this->view->language = $this->language = $this->view->language();
		$this->view->user = $this->user = system_user::getInstance()->getRow();
		$this->referer = $this->getRequest()->getHeader('referer');
				
		$page = new system_nav_page();
		$page->setLabel($this->language->load('System'))->setRoute('system/index');
		$this->crumbs()->addPage($page);
	}
	
	public function action_index() {
		$this->render();
	}

}